<%@ page import="ihotel.Reserva" %>



<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="reserva.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" required="" value="${reservaInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'cpf', 'error')} ">
	<label for="cpf">
		<g:message code="reserva.cpf.label" default="Cpf" />
		
	</label>
	<g:textField name="cpf" value="${reservaInstance?.cpf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="reserva.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" required="" value="${reservaInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'dataInicial', 'error')} required">
	<label for="dataInicial">
		<g:message code="reserva.dataInicial.label" default="Data Inicial" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicial" precision="day"  value="${reservaInstance?.dataInicial}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'dataFinal', 'error')} required">
	<label for="dataFinal">
		<g:message code="reserva.dataFinal.label" default="Data Final" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFinal" precision="day"  value="${reservaInstance?.dataFinal}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'tipoQuarto', 'error')} ">
	<label for="tipoQuarto">
		<g:message code="reserva.tipoQuarto.label" default="Tipo Quarto" />
		
	</label>
	<g:textField name="tipoQuarto" value="${reservaInstance?.tipoQuarto}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeQuartos', 'error')} required">
	<label for="quantidadeQuartos">
		<g:message code="reserva.quantidadeQuartos.label" default="Quantidade Quartos" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="quantidadeQuartos" type="number" min="1" value="1" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeAdultos', 'error')} required">
	<label for="quantidadeAdultos">
		<g:message code="reserva.quantidadeAdultos.label" default="Quantidade Adultos" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="quantidadeAdultos" type="number" min="1" value="${reservaInstance.quantidadeAdultos}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservaInstance, field: 'quantidadeCriancas', 'error')} required">
	<label for="quantidadeCriancas">
		<g:message code="reserva.quantidadeCriancas.label" default="Quantidade Criancas" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="quantidadeCriancas" type="number" value="0" required=""/>
</div>